using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model._Admin;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Attributes;

namespace HengTong.Model.Db.SupplyChain.Warehouse;

/// <summary>
/// 仓库库管关联表
/// 用于管理仓库与库管理员的多对多关系
/// </summary>
[MiddleTable]
public class SysWarehouseStocker : TopBasePoco
{
    /// <summary>
    /// 仓库管理员
    /// </summary>
    [Display(Name = "库管理员", Description = "仓库管理员", GroupName = "关联信息")]
    public FrameworkUser Stocker { get; set; }
    
    /// <summary>
    /// 库管理员ID
    /// </summary>
    [Display(Name = "库管理员ID", Description = "库管理员ID", GroupName = "关联信息")]
    public Guid? StockerId { get; set; }
    
    /// <summary>
    /// 关联的仓库
    /// </summary>
    [Display(Name = "仓库", Description = "关联的仓库", GroupName = "关联信息")]
    public SysWarehouse Warehouse { get; set; }
    
    /// <summary>
    /// 关联的仓库ID
    /// </summary>
    [Display(Name = "仓库ID", Description = "关联的仓库ID", GroupName = "关联信息")]
    public Guid? WarehouseId { get; set; }
}